import {ListQueryParams} from "@/api/common/types";

/**
 * 图片
 */
export interface PictureType {
    add_time: string;
    id: number;
    /**
     * 患者ID
     */
    patient_id: number;
    /**
     * 类型ID
     */
    type_id: number;
    /**
     * 图片地址
     */
    url: string;
}

export type PictureQueryParams = Partial<Pick<PictureType, "patient_id" | "type_id">> | ListQueryParams

export interface CreatePictureForm extends Pick<PictureType, "url" | "type_id" | "patient_id">{}

export interface EditPictureForm extends Partial<Pick<PictureType, "type_id" | "patient_id">>{
    id: number
}